import request from "@/utils/request"

export default {
    // 获取商品列表
    getCommodityInfo(formData) {
        const req = request({
            method: 'post',
            url: '/commodity/getCommodityInfo',
            data: formData,
            headers: {
                'Content-Type': "multipart/form-data"
            }
        })
        return req
    },
    // 获取商品的属性
    getAttributeByIds(formData) {
        const req = request({
            method: 'post',
            url: '/commodity/getAttributeByIds',
            data: formData,
            headers: {
                'Content-Type': "multipart/form-data"
            }
        })
        return req
    }
}